<?php

namespace Modules\Auth\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;
use Modules\Auth\Entities\Admin;

class AuthDatabaseSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Model::unguard();
        $admin = new Admin();
        $admin->name = 'admin';
        $admin->password = Hash::make('@admin');;
        $admin->is_super = true;
        $admin->describe = '超级管理员';
        $admin->save();

    }
}
